<script charset="utf-8" src="<?=STATIC_PATH?>/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="<?=STATIC_PATH?>/kindeditor/lang/zh_CN.js"></script>
<script>
    KindEditor.ready(function(K) {
        editor1 = K.create('textarea[name="content"]', {
            resizeType : 1,
            uploadJson : '/editorupload/upload',
            items : [
                'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                'insertunorderedlist', '|', 'emoticons', 'image', 'link']
        });
    });
    $(document).ready(function(){
        $("#edit_box").submit(function(){
            if ($("textarea[name='content']").val() == '') {
                $.dooDialog.alert("内容必须填写");
                return false;
            }
        });
    });
</script>
<style>
    .addBox{ }
    .addBox p{ width: 600px;}
    .addBox p label{width: 100px; float: left; text-align: right;}
    .addBox p span{width: 500px;   text-align: left;}
</style>
<div class="listDiv" style="height:85%; ">
    <form action="/sitemanage/businessEdit/?id=<?=$detail['id']?>" id="edit_box" method="post">
    <div class="addBox">
            <p>&nbsp;&nbsp;&nbsp;<strong>编辑<?=$detail['title']?></strong></p>
            <p>
                <label>标题：</label>
                <span><strong><?=$detail['title']?></strong></span>
            </p>
            <p>
                <label>内容：</label>
                <span></span>
            </p>

    </div>
    <textarea name="content" rows="16" cols="120"><?=$detail['content']?></textarea>
    </form>
</div>
